/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class IceCreamMaker {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050027';
    }

    get categoryName() {
        return '\u51b0\u6dc7\u6dcb\u673a';
    }

    getHardness(params) {
        return command({
            method: 'getHardness',
            methodId: 'pGoxpNaU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p1vZQT6C',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'pDrhgJsA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setHardness(params) {
        return command({
            method: 'setHardness',
            methodId: 'peH3bdl5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'pUPQLLTP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'ppAX3ZIm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pZgRrSjw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default IceCreamMaker;
